package com.freemalll.merchant.mapper.coopManagement;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.freemalll.merchant.domain.dto.coopManagement.AssetContrastQueryDto;
import com.freemalll.merchant.domain.dto.coopManagement.AssetManagePageDto;
import com.freemalll.merchant.domain.entity.coopManagement.MerAssetManage;
import com.freemalll.merchant.domain.vo.coopManagement.AssetContrastDetailsVo;
import com.freemalll.merchant.domain.vo.coopManagement.AssetManagePageVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 映射层。
 *
 * @author songshixiong
 * @since 2025-04-29
 */
@Mapper
public interface MerAssetManagementMapper extends BaseMapper<MerAssetManage> {


    /**
     * 查询
     *
     * @param dto
     * @return
     */
    List<AssetContrastDetailsVo> queryList(@Param("dto") AssetContrastQueryDto dto);

    /**
     * 查询当前资方
     *
     * @param dto
     * @return
     */
    List<AssetContrastDetailsVo> queryCurrentCapital(@Param("dto") AssetContrastQueryDto dto);

    /**
     * 分页查询
     *
     * @param page
     * @param dto
     * @return
     */
    Page<AssetManagePageVo> pageSearch(Page page, @Param("dto") AssetManagePageDto dto);
}
